import React, { Component } from 'react'
import Item from './Item'

export default class ListItems extends Component {
  render() {
    return (
      <ul className="text">
        {
          this.props.list.map((item)=>{
          return <Item id={item.id} key={item.id} edit={this.props.edit} del={this.props.del}>{item.name}</Item>
          })
        }
      </ul>
    )
  }
}
